<template>
  <div>
    <div class="row">
      <yy-button>默认按钮</yy-button>
      <yy-button type="primary">主要按钮</yy-button>
      <yy-button type="success">成功按钮</yy-button>
      <yy-button type="info">信息按钮</yy-button>
      <yy-button type="warning">警告按钮</yy-button>
      <yy-button type="danger">危险按钮</yy-button>
    </div>
    <div class="row">
      <yy-button plain>朴素按钮</yy-button>
      <yy-button type="primary" plain>主要按钮</yy-button>
      <yy-button type="success" plain>成功按钮</yy-button>
      <yy-button type="info" plain>信息按钮</yy-button>
      <yy-button type="warning" plain>警告按钮</yy-button>
      <yy-button type="danger" plain>危险按钮</yy-button>
    </div>
    <div class="row">
      <yy-button round>圆角按钮</yy-button>
      <yy-button type="primary" round>主要按钮</yy-button>
      <yy-button type="success" round>成功按钮</yy-button>
      <yy-button type="info" round>信息按钮</yy-button>
      <yy-button type="warning" round>警告按钮</yy-button>
      <yy-button type="danger" round>危险按钮</yy-button>
    </div>
    <div class="row">
      <yy-button icon="icon-sousuo" circle></yy-button>
      <yy-button type="primary" icon="icon-edit" circle></yy-button>
      <yy-button type="success" icon="icon-check" circle></yy-button>
      <yy-button type="info" icon="icon-email" circle></yy-button>
      <yy-button type="warning" icon="icon-star" circle></yy-button>
      <yy-button type="danger" icon="icon-delete" circle></yy-button>
    </div>
    <div class="row">
      <yy-button disabled>圆角按钮</yy-button>
      <yy-button type="primary" disabled>主要按钮</yy-button>
      <yy-button type="success" disabled>成功按钮</yy-button>
      <yy-button type="info" disabled>信息按钮</yy-button>
      <yy-button type="warning" disabled>警告按钮</yy-button>
      <yy-button type="danger" disabled>危险按钮</yy-button>
    </div>
    <div class="row">
      <yy-button plain disabled>朴素按钮</yy-button>
      <yy-button type="primary" plain disabled>主要按钮</yy-button>
      <yy-button type="success" plain disabled>成功按钮</yy-button>
      <yy-button type="info" plain disabled>信息按钮</yy-button>
      <yy-button type="warning" plain disabled>警告按钮</yy-button>
      <yy-button type="danger" plain disabled>危险按钮</yy-button>
    </div>
    <div class="row">
      <yy-button type="text">文字按钮</yy-button>
      <yy-button type="text" disabled>文字按钮</yy-button>
    </div>
    <div class="row">
      <yy-button type="primary" icon="icon-sousuo">搜索</yy-button>
      <yy-button type="primary" loading icon="icon-edit"></yy-button>
      <yy-button type="primary" icon="icon-check"></yy-button>
      <yy-button type="primary" icon="icon-email"></yy-button>
      <yy-button type="primary" icon="icon-star"></yy-button>
      <yy-button type="primary">
        删除<i class="iconfont icon-delete"></i>
      </yy-button>
    </div>
    <div class="row">
      <yy-button-group>
        <yy-button type="primary" icon="icon-star"></yy-button>
        <yy-button type="primary" icon="icon-edit"></yy-button>
        <yy-button type="primary" icon="icon-sousuo">搜索</yy-button>
      </yy-button-group>
    </div>
    <div class="row">
      <yy-button type="primary" loading>加载中</yy-button>
    </div>
    <div class="row">
      <yy-button>默认按钮</yy-button>
      <yy-button size="medium">中等按钮</yy-button>
      <yy-button size="small">小型按钮</yy-button>
      <yy-button size="mini">超小按钮</yy-button>
    </div>
    <div class="row">
      <yy-button round>默认按钮</yy-button>
      <yy-button size="medium" round>中等按钮</yy-button>
      <yy-button size="small" round>小型按钮</yy-button>
      <yy-button size="mini" round @click="myClick">超小按钮</yy-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "yybutton",
  components: {},
  props: {},
  data () {
    return {};
  },
  methods: {
    myClick (e) {
      console.log("点击", e);
    },
  },
  created () { },
  mounted () { },
};
</script>
<style lang="less" scoped>
.row {
	margin: 20px;
}
</style>
